public class test {

    public static void main(String[] args) {
        int[][] array=new int[2][];
        array[0]=new int[5];
        array[1]=new int[3];

        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j]+" ");
            }
            System.out.println();
        }
    }

    public static void main3(String[] args) {
        int[][] array={{1,2,3},{4,5,6}};
        int[][] array2=new int[2][3];
        int[][] array3=new int[][]{{1,2,3},{4,5,6}};

        System.out.println(array[0]);
        System.out.println(array[0].length);

        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j]+" ");
            }
            System.out.println();
        }
    }
}
